
package xijia.plus.docs.manage.all.controller;

import io.github.wslxm.springbootplus2.core.base.controller.BaseController;
import io.github.wslxm.springbootplus2.core.constant.BaseConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xijia.plus.docs.constant.RequestConst;
import xijia.plus.docs.manage.all.service.SiteMapService;

/**
 * 站点地图 前端控制器
 *
 * <p>
 * ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
 * </p>
 *
 * @author ws
 * @email 1720696548@qq.com 解析
 * @date 2022-10-18 15:11:33
 */
@RestController
@RequestMapping(BaseConstant.Uri.API_ADMIN + "/all/siteMap")
@Api(value = "SiteMapController", tags = "站点地图")
public class SiteMapController extends BaseController {

    @Autowired
    private SiteMapService siteMapService;


    @PostMapping(value = "/generateSiteMap")
    @ApiOperation(value = "生成站点地图")
    public void generateSiteMap() {
         siteMapService.generateSiteMap(request.getHeader(RequestConst.DB));
    }
}
